<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>This is index page</title>
</head>
<body>
<h1>Session Details</h1>
<ul th:each="attr : ${session}">
    <li>
        Key: <span th:text="${attr.key}"></span>
        <br/>
        Value: <span th:text="${attr.value}"></span>
    </li>
</ul>
</body>
</html>